package vumt.radiocountries.dialog;

import vumt.radiocountries.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class DialogNoticeExitApp extends Activity implements OnClickListener {
	Button btnYES, btnNO;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dialog_notice_exitapp);

		btnYES = (Button) findViewById(R.id.btnYES);
		btnNO = (Button) findViewById(R.id.btnNO);
		btnYES.setOnClickListener(this);
		btnNO.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnYES:
			setResult(2);
			finish();
			break;
		case R.id.btnNO:
			finish();
			break;
		default:
			break;
		}

	}
}
